import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'login',
        component: () => import('../views/login/index.vue')
    },
    {
        path: '/admin',
        name: 'admin',
        component: () => import('../views/admin/index.vue'),
        children: [
            {
                path: '/admin/auditSeekerInformation',
                name: 'admAuditSeekerInformation',
                component: () => import('../components/admin/auditSeekerInformation.vue')
            },
            {
                path: '/admin/auditCompanyInformation',
                name: 'admAuditCompanyInformation',
                component: () => import('../components/admin/auditCompanyInformation.vue')
            },
            {
                path: '/admin/userInformation',
                name: 'admUserInformation',
                component: () => import('../components/admin/userInformation.vue')
            },
            {
                path: '/admin/jobType',
                name: 'admJobType',
                component: () => import('../components/admin/jobType.vue')
            },
        ]
    },
    {
        path: '/seeker',
        name: 'seeker',
        component: () => import('../views/seeker/index.vue'),
        children: [
            {
                path: '/seeker/baseInformation',
                name: 'seeBaseInformation',
                component: () => import('../components/seeker/baseInformation.vue')
            },
            {
                path: '/seeker/auditInformation',
                name: 'seeAuditInformation',
                component: () => import('../components/seeker/auditInformation.vue')
            },
            {
                path: '/seeker/resumeInformation',
                name: 'seeResumeInformation',
                component: () => import('../components/seeker/resumeInformation.vue')
            },
            {
                path: '/seeker/updatePassword',
                name: 'seeUpdatePassword',
                component: () => import('../components/util/updatePassword.vue')
            },
            {
                path: '/seeker/queryCompany',
                name: 'seeQueryCompany',
                component: () => import('../components/util/queryCompany.vue')
            },
            {
                path: '/seeker/jobInformation',
                name: 'seeJobInformation',
                component: () => import('../components/seeker/jobInformation.vue')
            },
            {
                path: '/seeker/readCompany',
                name: 'seeReadCompany',
                component: () => import('../components/util/readCompany.vue')
            },
            {
                path: '/seeker/readCompanyJobs',
                name: 'seeReadCompanyJobs',
                component: () => import('../components/util/readCompanyJobs.vue')
            },
            {
                path: '/seeker/delivery',
                name: 'seeDeliveries',
                component: () => import('../components/seeker/deliveries.vue')
            },
            {
                path: '/seeker/remark',
                name: 'seeRemarks',
                component: () => import('../components/seeker/remarks.vue')
            },
        ]
    },
    {
        path: '/company',
        name: 'company',
        component: () => import('../views/company/index.vue'),
        children: [
            {
                path: '/company/baseInformation',
                name: 'comBaseInformation',
                component: () => import('../components/company/baseInformation.vue')
            },
            {
                path: '/company/auditInformation',
                name: 'comAuditInformation',
                component: () => import('../components/company/auditInformation.vue')
            },
            {
                path: '/company/updatePassword',
                name: 'comUpdatePassword',
                component: () => import('../components/util/updatePassword.vue')
            },
            {
                path: '/company/queryCompany',
                name: 'comQueryCompany',
                component: () => import('../components/util/queryCompany.vue')
            },
            {
                path: '/company/jobInformation',
                name: 'comJobInformation',
                component: () => import('../components/company/jobInformation.vue')
            },
            {
                path: '/company/readCompany',
                name: 'comReadCompany',
                component: () => import('../components/util/readCompany.vue')
            },
            {
                path: '/company/readCompanyJobs',
                name: 'comReadCompanyJobs',
                component: () => import('../components/util/readCompanyJobs.vue')
            },
            {
                path: '/company/deliveries',
                name: 'comDeliveries',
                component: () => import('../components/company/deliveries.vue')
            },
            {
                path: '/company/remarks',
                name: 'comRemarks',
                component: () => import('../components/company/remarks.vue')
            },
        ]
    }

]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
